package code.ws_common_utils
{
	import code.StarlingMain;
	import code.ws_common_scene.GameScene;
	
	import starling.display.Sprite;

	/**
	 * 游戏层级 
	 * @author qiangchen
	 * 
	 */	
	public class LayerUtils
	{
		/** 场景层 */
		private static var _scene:GameScene;
		/** ui层 */
		private static var _ui:Sprite;
		/** 过场层 */
		private static var _interlude:Sprite;
		
		
		
		/**
		 * 初始化 
		 * 
		 */		
		public static function ini():void
		{
			_scene = new GameScene();
			StarlingMain.instance.addChild( _scene );
			
			_ui = new Sprite();
			StarlingMain.instance.addChild( _ui );
			
			_interlude = new Sprite();
			_interlude.visible = false;
			StarlingMain.instance.addChild( _interlude );
		}
		
		
		/** 获取场景层主对象 */
		public static function get scene():GameScene{return _scene};
		/** 获取ui层主对象 */
		public static function get home():Sprite{return _ui};
		/** 获取过场层 */
		public static function get interlude():Sprite{return _interlude};
		
	}
}